Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Picker Component #1821

Merged
merged 23 commits into from
Feb 27, 2024
Merged

Conversation

bmingles
Copy link
Contributor

@bmingles bmingles commented Feb 20, 2024

Copy link

codecov bot commented Feb 20, 2024

Codecov Report

Attention: Patch coverage is 62.74510% with 19 lines in your changes are missing coverage. Please review.

Project coverage is 46.01%. Comparing base (677e4c5) to head (a8173a1).
Report is 3 commits behind head on main.

Files Patch % Lines
packages/components/src/spectrum/picker/Picker.tsx 0.00% 11 Missing ⚠️
...mponents/src/spectrum/picker/PickerItemContent.tsx 0.00% 6 Missing ⚠️
packages/code-studio/src/styleguide/Pickers.tsx 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1821      +/-   ##
==========================================
- Coverage   46.11%   46.01%   -0.11%     
==========================================
  Files         628      635       +7     
  Lines       37822    37887      +65     
  Branches     9529     9550      +21     
==========================================
- Hits        17440    17432       -8     
- Misses      20328    20401      +73     
  Partials       54       54              
Flag Coverage Δ
unit 46.01% <62.74%> (-0.11%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bmingles bmingles requested a review from mofojed February 22, 2024 22:23
mofojed
mofojed previously approved these changes Feb 26, 2024
Copy link
Member

@mofojed mofojed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, couple of comments about docs

Comment on lines 8 to 11
export type PickerItemKey = Key | boolean;
export type PickerSelectionChangeHandler = (key: PickerItemKey) => void;

export interface NormalizedPickerItem {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a comment about why we're defining a PickerItemKey and NormalizedPickerItem here would be beneficial.

Comment on lines 28 to 29
/** Handler that is called when the selection changes. */
onSelectionChange?: (key: PickerItemKey) => void;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we should mark this as deprecated to encourage usage of onChange instead?

@bmingles bmingles requested a review from mofojed February 26, 2024 20:26
@bmingles bmingles merged commit e50f0f6 into deephaven:main Feb 27, 2024
4 of 5 checks passed
@bmingles bmingles deleted the plugins-292-ui-picker-constant branch February 27, 2024 18:09
@github-actions github-actions bot locked and limited conversation to collaborators Feb 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ui.picker Implementation with constant data provided from server
2 participants